<template>
    <div class="bottom-bar">
        <van-goods-action>
            <van-goods-action-icon icon="chat-o" text="客服" />
            <van-goods-action-icon icon="shop-o" text="购物车" info="5" />
            <van-goods-action-icon icon="shop-o" text="店铺" info="12" />
            <van-goods-action-button  type="warning" text="加入购物车" @click="addCart"/>
            <van-goods-action-button  type="danger" text="立即购买" />
        </van-goods-action>
    </div>
</template>

<script>
    export default {
        name: "DetailbottomBar",
        methods: {
            gocart(){
                this.$router.push({
                    name: "Cart"
                });
            },
            addCart() {
                this.$emit('addcart')
                this.$toast('加入购物车成功');
            },
            momy(){
                this.$toast('网络繁忙');
            }
        }
    }
</script>

<style scoped>
.bottom-bar{
    height: 49px;
}
</style>